import request from '@/utils/request'

export const getCardListApi = (params) => {
  return request.get('/parking/card/list', {
    params
  })
}

export const createCardAPI = (data) => {
  return request.post('/parking/card', data)
}

export const getCardDetailApi = (id) => {
  return request.get(`/parking/card/${id}`)
}

export const changeCardApi = (data) => {
  return request.put('/parking/card/edit', data)
}

// 删除

export const delCardApi = (ids) => {
  return request.delete(`/parking/card/${ids}`)
}
